package com.rayenterprise.kms.domain;

import java.io.Serializable;

/**
 * This Class is for Stat Summary Purpose Only
 * 
 * @author h.r.inc
 * 
 */

public class FinishedStat implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String holderName;
	private long countAll;
	private double finishedCount;
	private double percentage;
	private int statID;

	public FinishedStat() {
	}

	public FinishedStat(int statID, String holderName, long countAll,
			double finishedCount) {
		super();
		this.holderName = holderName;
		this.countAll = countAll;
		this.finishedCount = finishedCount;
		this.statID = statID;
	}

	public int getStatID() {
		return statID;
	}

	public void setStatID(int statID) {
		this.statID = statID;
	}

	public String getHolderName() {
		return holderName;
	}

	public void setHolderName(String holderName) {
		this.holderName = holderName;
	}

	public long getCountAll() {
		return countAll;
	}

	public void setCountAll(long countAll) {
		this.countAll = countAll;
	}

	public double getFinishedCount() {
		return finishedCount;
	}

	public void setFinishedCount(double finishedCount) {
		this.finishedCount = finishedCount;
	}

	public double getPercentage() {

		percentage = finishedCount * 100/ countAll;
		return percentage;
	}

}
